home *** CD-ROM | disk | FTP | other *** search
- unit SML_Handler_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.75 $
- // File generated on 10/10/99 7:20:01 PM from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\SST\9912\Code\AppServer\SML_Handler.tlb
- // IID\LCID: {F41822DB-7F47-11D3-B020-000000000000}\0
- // Helpfile:
- // HelpString: Project1 Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_SML_Handler: TGUID = '{F41822DB-7F47-11D3-B020-000000000000}';
- IID_ISMLHandler: TGUID = '{F41822DC-7F47-11D3-B020-000000000000}';
- CLASS_SMLHandler: TGUID = '{F41822DE-7F47-11D3-B020-000000000000}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- ISMLHandler = interface;
- ISMLHandlerDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- SMLHandler = ISMLHandler;
-
-
- // *********************************************************************//
- // Interface: ISMLHandler
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {F41822DC-7F47-11D3-B020-000000000000}
- // *********************************************************************//
- ISMLHandler = interface(IDispatch)
- ['{F41822DC-7F47-11D3-B020-000000000000}']
- function GetContent(const aVariables: WideString): WideString; safecall;
- end;
-
- // *********************************************************************//
- // DispIntf: ISMLHandlerDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {F41822DC-7F47-11D3-B020-000000000000}
- // *********************************************************************//
- ISMLHandlerDisp = dispinterface
- ['{F41822DC-7F47-11D3-B020-000000000000}']
- function GetContent(const aVariables: WideString): WideString; dispid 1;
- end;
-
- CoSMLHandler = class
- class function Create: ISMLHandler;
- class function CreateRemote(const MachineName: string): ISMLHandler;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoSMLHandler.Create: ISMLHandler;
- begin
- Result := CreateComObject(CLASS_SMLHandler) as ISMLHandler;
- end;
-
- class function CoSMLHandler.CreateRemote(const MachineName: string): ISMLHandler;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_SMLHandler) as ISMLHandler;
- end;
-
- end.
-